/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package oplm;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author hh
 */
public class Oplm {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        System.out.println(new SimpleDateFormat("yyyy/MM/dd").format(new Date()));
        try {
            System.out.println(new SimpleDateFormat("yyyy/MM/dd").parse("2012/12/03"));
        } catch (ParseException ex) {
            Logger.getLogger(Oplm.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
}
